import request from '@/utils/request';


export default {
    findTreat(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/pati/treat/findTreat?pageym=${pageym}&pagesize=${pagesize}&cardid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
    deletepati(id) {
        return request({
            url: `http://localhost/api/pati/treat/delTreat?id=${id}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/pati/treat/getListDto`,
            method: 'post'
        });
    },
    addTreat(data) {
        return request({
            url: `http://localhost/api/pati/treat/addTreat`,
            method: 'post',
            data
        });
    },
    upTreatUI(id){
        return request({
            url: `http://localhost/api/pati/treat/upTreatui?id=${id}`,
            method: 'post',      
        });
    },
    upTreat(data) {
        return request({
            url: `http://localhost/api/pati/treat/upTreat`,
            method: 'post',
            data
        });
    },
}